<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="slider in sliders" :key="slider.id">
        <img :src="slider.pic"/>
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  props: {
    sliders: {
      type: Array,
      default () {
        return []
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.my-swipe {
  .van-swipe-item {
    img{
      width: 100%;
    }
  }
}
</style>
